<template>
	<view class="page flex-col">
		<uni-nav-bar color="black" @clickLeft="back" :fixed="true" :background-color="navColor" status-bar
			left-icon="left" :border="false">
			<view class="top">
				推广中心
			</view>
		</uni-nav-bar>
		<view class="group_8 flex-col">
			<view class="text-wrapper_1 flex-row">
				<view class="image-text_6 flex-row align-center justify-between">
					<image class="label_14" referrerpolicy="no-referrer" src="../../static/icon/search_dark.png" />
					<uni-easyinput class="text_3" :inputBorder="false"></uni-easyinput>
					
				</view>
			</view>
			<view class="list_1 flex-col">
				<view class="section_1 flex-row" v-for="(item, index) in products" :key="index">
					<view class="image-text_7 flex-row  justify-between">
						<image mode="aspectFit" class="box_6 flex-col" :src="item.pic"></image>
						<view class="section_5 flex-col">
							<text class="text-group_4">{{item.name}}</text>
							<view class="section_6 flex-row">
								<view class="image-text_8 flex-row justify-between">
									<image class="thumbnail_5" referrerpolicy="no-referrer"
										src="../../static/icon/share.png"/>
									<text class="text-group_6">去分享</text>
								</view>
							</view>
						</view>
					</view>
					<view class="image-text_9 flex-row justify-between">
						<image class="label_15" referrerpolicy="no-referrer" :src="item.iscollected?'../../static/icon/star_sel.png':'../../static/icon/star.png'" />
						<text class="text-group_7">收藏</text>
					</view>
					
				</view>
			</view>

		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				navColor: 'white',
				products:[{pic:'https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/0b3423bbd7da42f3853effd19c65fb0e_mergeImage.png',name:'卫岗弗瑞希瑞士风味酸奶',iscollected:false},
				{pic:'https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/de0fc9521c57428aa88ce2dfdf97e944_mergeImage.png',name:'南京博物馆总管联名款高品醇鲜奶',iscollected:true},
				{pic:'https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/73c907ec121749e080fa5d3c0b6a1a02_mergeImage.png',name:'卫岗黄金高钙牛奶鲜奶高品质',iscollected:false},
				{pic:'https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/9f1a187158634e7f82f1c560f3450122_mergeImage.png',name:'since1928纯牛奶',iscollected:true},
				{pic:'https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/fff98324c1df49888007ceaf7f104493_mergeImage.png',name:'卫岗高钙牛奶',iscollected:false},
				{pic:'https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/0b3423bbd7da42f3853effd19c65fb0e_mergeImage.png',name:'卫岗弗瑞希瑞士风味酸奶',iscollected:false},
				{pic:'https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/0b3423bbd7da42f3853effd19c65fb0e_mergeImage.png',name:'卫岗弗瑞希瑞士风味酸奶',iscollected:false},
				{pic:'https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/0b3423bbd7da42f3853effd19c65fb0e_mergeImage.png',name:'卫岗弗瑞希瑞士风味酸奶',iscollected:false},
				{pic:'https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/0b3423bbd7da42f3853effd19c65fb0e_mergeImage.png',name:'卫岗弗瑞希瑞士风味酸奶',iscollected:false},
				{pic:'https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/0b3423bbd7da42f3853effd19c65fb0e_mergeImage.png',name:'卫岗弗瑞希瑞士风味酸奶',iscollected:false}
				],
				
				constants: {},
			};
		},
		methods: {
			back() {
				uni.navigateBack({
					delta: 1
				})
			},
		},
	};
</script>
<style lang="scss">
	@import '../common/common.scss';
	@import './index.scss';
</style>